package com.szm.mvc.util.bean;

import java.util.List;

/**
 * @author szm
 * @ClassName ActionBean.java
 * @Description 模拟 Struts ActionBean
 *				
 */
public class ActionBean extends XMLBean{

	/**
	 * name Action名称 请求匹配.
	 */
	private String name;
	
	/**
	 * url 最终转换请求地址.
	 */
	private String url;
	
	/**
	 * clazz Action映射Class.
	 */
	private String clazz;
	/**
	 * method Action方法.
	 */
	private String method;
	
	/**
	 * resultsBeanList results与url.
	 */
	private List<ResultsBean> resultsBeanList;
	
	/**
	 * packageBean 属于哪个包.
	 */
	private PackageBean packageBean;
	
	
	
	public ActionBean() {
		super();
	}
	
	public ActionBean(String name) {
		super();
		this.name = name;
	}

	public ActionBean(String name, String clazz, String method) {
		super();
		this.name = name;
		this.clazz = clazz;
		this.method = method;
	}
	
	public ActionBean(String name, String clazz, String method,
			PackageBean packageBean) {
		super();
		this.name = name;
		this.clazz = clazz;
		this.method = method;
		this.packageBean = packageBean;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getClazz() {
		return clazz;
	}
	public void setClazz(String clazz) {
		this.clazz = clazz;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public List<ResultsBean> getResultsBeanList() {
		return resultsBeanList;
	}
	public void setResultsBeanList(List<ResultsBean> resultsBeanList) {
		this.resultsBeanList = resultsBeanList;
	}
	public PackageBean getPackageBean() {
		return packageBean;
	}
	public void setPackageBean(PackageBean packageBean) {
		this.packageBean = packageBean;
	}
	
	
}
